package cn.lili.modules.im.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Chopper
 */
@Data
@TableName("tz_sys_user")
@ApiModel(value = "Im消息")
public class ImAdminUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("user_id")
    @ApiModelProperty(value = "唯一标识", hidden = true)
    private String id;
    /**
     * 头像
     */
    @TableField("pic")
    private String face;
    /**
     * 昵称
     */
    @TableField("nick_name")
    private String name;

    @CreatedDate
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;
}